import { getRequest, postRequest } from "@/lib/axios";

// 图片上传
export const uploadimgApi = (param) => {
  return postRequest("/uploadimg", param);
};
//test
// export const uploadimgUrl = 'https://test-cms-api.imobybox.com/api/uploadimg'

let uploadUrl = "";

if (process.env.NODE_ENV == "production") {
  uploadUrl = "https://cms-api.imobybox.com/api/uploadimg";
} else {
  uploadUrl = "http://test-cms-api.imobybox.com/api/uploadimg";
}

export const uploadimgUrl = uploadUrl;
